@extends('layouts.auth')

@section('content')

<div class="res-banner">
    <div class="res-main">
        <div class="login-banner-bg"><span></span><img src="/home/images/big.jpg" /></div>
        <div class="login-box">

            <div class="am-tabs" id="doc-my-tabs">
                <ul class="am-tabs-nav am-nav am-nav-tabs am-nav-justify">
                    <li class="am-active"><a href="">邮箱注册</a></li>
                    <li><a href="">手机号注册</a></li>
                </ul>

                <div class="am-tabs-bd">
                    <div class="am-tab-panel am-active">
                        <form action="/auth/register" method="post">
                            {{csrf_field()}}
                            <div class="user-name">
                                <label for="name"><i class="am-icon-user"></i></label>
                                <input type="text" name="name" id="name" placeholder="请输入用户名" value="{{ old('name') }}">
                            </div>
                            <div class="user-name">
                                <label for="mobile"><i class="am-icon-mobile-phone am-icon-md"></i></label>
                                <input type="text" name="mobile" id="mobile" placeholder="请输入手机号" value="{{ old('mobile') }}">
                            </div>
                            <div class="user-email">
                                <label for="email"><i class="am-icon-envelope-o"></i></label>
                                <input type="email" name="email" id="email" placeholder="请输入邮箱账号" value="{{ old('email') }}">
                            </div>
                            <div class="user-pass">
                                <label for="password"><i class="am-icon-lock"></i></label>
                                <input type="password" name="password" id="password" placeholder="设置密码">
                            </div>
                            <div class="user-pass">
                                <label for="passwordRepeat"><i class="am-icon-lock"></i></label>
                                <input type="password" name="password_confirmation" id="passwordRepeat" placeholder="确认密码">
                            </div>

                            <div class="user-email">
                                <input type="text" name="verify" id="verify" placeholder="请输入验证码" style="width=50%;">
                                <img src="http://www.lamp186.com/captcha/default?MslB5ttR" alt="" id="verify_img" onclick="changeVerify()">
                            </div>
                        <div class="am-cf">
                            <input type="submit" name="" value="注册" class="am-btn am-btn-primary am-btn-sm am-fl">
                        </div>

                    </div>
                        </form>

                    <script>
                        function changeVerify()
                        {
                            $(function(){
                                var img = $("#verify_img");
                                var src = img.attr('src')+Math.random(1,500);
                                img.attr('src',src);
                            });
                        }
                    </script>

                    <div class="am-tab-panel">
                        <form action="/auth/register" method="post">
                            {{csrf_field()}}
                            <div class="user-phone">
                                <label for="phone"><i class="am-icon-mobile-phone am-icon-md"></i></label>
                                <input type="tel" name="" id="phone" placeholder="请输入手机号">
                            </div>
                            <div class="verification">
                                <label for="code"><i class="am-icon-code-fork"></i></label>
                                <input type="tel" name="" id="code" placeholder="请输入验证码">
                                <a class="btn" href="javascript:void(0);" onclick="sendMobileCode();" id="sendMobileCode">
                                    <span id="dyMobileButton">获取</span></a>
                            </div>
                            <div class="user-pass">
                                <label for="password"><i class="am-icon-lock"></i></label>
                                <input type="password" name="password" id="password" placeholder="设置密码">
                            </div>
                            <div class="user-pass">
                                <label for="passwordRepeat"><i class="am-icon-lock"></i></label>
                                <input type="password" name="password_confirmation" id="passwordRepeat" placeholder="确认密码">
                            </div>
                            <div class="user-verify">

                                <input type="text" name="verify" id="verify" placeholder="请输入验证码">
                            </div>

                        <div class="am-cf">
                            <input type="submit" name="" value="注册" class="am-btn am-btn-primary am-btn-sm am-fl">
                        </div>
                        </form>

                        <hr>
                    </div>

                    <script>
                        $(function() {
                            $('#doc-my-tabs').tabs();
                        })
                    </script>

                </div>
        </div>
    </div>
</div>
@endsection